package com.yawn.serviceinvoker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 包括了这三个注解
 * @SpringBootApplication
 * @EnableDiscoveryClient
 * @EnableCircuitBreaker
 */
@SpringCloudApplication
//@ComponentScan({"com.yawn.serviceinvoker"})
@EnableFeignClients
public class ServiceInvokerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceInvokerApplication.class, args);
    }
}
